<?php
require_lib('common.function');
define('IN_OS', true);
class patients{
    private $ctx;
    private $patient;
    function __construct() {
        $this->ctx = $GLOBALS['context'];
        $this->patient = load_model('patient');
    }
    //判断是否登录
    private function is_login() {
        return true;
    }
    //患者登录后首页
    function do_index(array & $request, array & $response, array & $app) {

    }
    //患者登录
    function login(array & $request, array & $response, array & $app) {

    }
    //患者注册
    function register() {
        $this->is_login();
    }
    function user_phone_check(array & $request, array & $response) {
        $this->patient->user_phone_check($request, $response);
    }
    function do_register(array & $request, array & $response) {
        $this->patient->add_patient($request, $response);
    }
    function send_check_code(array & $request, array & $response) {
        $this->patient->send_phone_check_code($request, $response);
    }
    function my_info(){
        $this->is_login();
    }
    function home_phone(array & $request, array & $response) {

    }
    //患者的咨询
    function consult() {

    }
    //患者的候诊大厅
    function wait_hall_consult() {

    }
    function wait_hall_preflight(){

    }
    //患者的历史咨询
    function history_consult() {

    }
    function get_province(array & $request, array & $response) {

    }
    function get_city(array & $request, array & $response) {

    }
}

